package com.warrior.superdata.config;

import com.warrior.superdata.handler.MappingHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @Description:
 * @ClassName: com.warrior.wisdom.machine.room.config.SuperDataApiAutoConfiguration.java
 * @date: 2022/2/22 16:03
 * @author xujian
 */
@Configuration
public class SuperDataApiAutoConfiguration {

    @Autowired
    private MappingHandler mappingHandler;

    @PostConstruct
    public void initConfiguration() {
        try {
            mappingHandler.handlerAllApiMapping();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
